package com.danskin.wechat.dao;

import com.danskin.wechat.entity.RelRolePrivilege;
import com.danskin.wechat.entity.example.RelRolePrivilegeExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RelRolePrivilegeDao {
    int countByExample(RelRolePrivilegeExample example);

    int deleteByExample(RelRolePrivilegeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(RelRolePrivilege record);

    int insertSelective(RelRolePrivilege record);

    List<RelRolePrivilege> selectByExample(RelRolePrivilegeExample example);

    RelRolePrivilege selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") RelRolePrivilege record, @Param("example") RelRolePrivilegeExample example);

    int updateByExample(@Param("record") RelRolePrivilege record, @Param("example") RelRolePrivilegeExample example);

    int updateByPrimaryKeySelective(RelRolePrivilege record);

    int updateByPrimaryKey(RelRolePrivilege record);
    
    int insertBatchSelective(List<RelRolePrivilege> list);
}